snort3: refactor architecture-specific dependencies and CMake options
authorJosef Schlehofer <[email protected]>
Wed, 24 Sep 2025 08:03:13 +0000 (10:03 +0200)
committerJosef Schlehofer <[email protected]>
Wed, 8 Oct 2025 19:34:07 +0000 (21:34 +0200)
commit7a30a574b3fb3f394898732fc5ab69ffda8a2ee7
tree97f077d3acdb61b48361be1efa54f2a66455915a
parenteb39acf951be2b8c055e1c526cecb0a4b7c0bd8b
snort3: refactor architecture-specific dependencies and CMake options

1. Enabled hyperscan/vectorscan together with adding dependency only for x86_64 and aarch64.
2. Disabled tmalloc (from gperftools package) for powerpc and mips.

By doing this refactor, snort3 is going to be available for more OpenWrt devices
(as it was in the past) as currently it was compiled only for x86_x64 and aarch64 by mistake.

Fixes: 257e2fc38aa694604e7be9e70e58082037133434 ("snort3: fix logic in gpertools-runtime depends")
Signed-off-by: Josef Schlehofer <[email protected]>
(cherry picked from commit 126364e105fbcfde0617f58c39048c7d56c17a06)
[For OpenWrt 24.10: There is hyperscan instead of vectorscan]
net/snort3/Makefile